CommonEvent 116
Name = "パイパイ秘石"

  999([0])
  ConditionalBranch([0, 3271, 1])
    ControlSwitches([3271, 3271, 0])
    ControlSwitches([5592, 5592, 0])
    ShowTextAttributes(["tennyo_fc1", 0, 0, 2])
    ShowText(["\\n<Paipai>"])
    ShowText(["I'm staying here as a freeloader, you know."])
    ShowText(["I can create new Gems, so please place your orders!"])
    ShowTextAttributes(["tennyo_fc1", 0, 0, 2])
    ShowText(["\\n<Paipai>"])
    ShowText(["Also, it seems you fought Angolmois."])
    ShowText(["Actually, a familiar merchant brought a piece of that armor."])
    ConditionalBranch([0, 1005, 0])
      ShowTextAttributes(["alice_fc5", 0, 0, 2])
      ShowText(["\\n<Alice>"])
      ShowText(["So there was a merchant who collected such a thing in that back mountain."])
      ShowText(["Merchants are indeed proactive..."])
      Empty([])

    BranchEnd([])
    ConditionalBranch([0, 1006, 0])
      ShowTextAttributes(["alice_fc1", 0, 0, 2])
      ShowText(["\\n<Alice>"])
      ShowText(["So there was a merchant who collected such a thing in that back mountain."])
      ShowText(["Merchants are indeed proactive..."])
      Empty([])

    BranchEnd([])
    ConditionalBranch([0, 1007, 0])
      ShowTextAttributes(["alice_fc7", 0, 0, 2])
      ShowText(["\\n<Alice>"])
      ShowText(["So there was a merchant who collected such a thing in that back mountain."])
      ShowText(["Merchants are indeed proactive..."])
      Empty([])

    BranchEnd([])
    ShowTextAttributes(["tennyo_fc1", 0, 0, 2])
    ShowText(["\\n<Paipai>"])
    ShowText(["I sensed residual energy from that armor fragment."])
    ShowText(["But, it's not enough power to finish the Gem."])
    ShowTextAttributes(["tennyo_fc1", 0, 0, 2])
    ShowText(["\\n<Paipai>"])
    ShowText(["If you ever fight a Transcendent-class enemy in the future..."])
    ShowText(["Please bring back body parts or anything!"])
    ShowTextAttributes(["tennyo_fc1", 0, 0, 2])
    ShowText(["\\n<Paipai>"])
    ShowText(["If you do, I might be able to create a new Gem..."])
    ShowText(["I'm counting on you!"])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["After defeating the Sixteen Phenomena of Ruination, let's talk to Pai Pai."])
    ShowText(["We might be able to make a new Gem――"])
    Wait([30])
    Empty([])

  BranchEnd([])
  ConditionalBranch([1, 1308, 0, 13, 1])
    ConditionalBranch([0, 7041, 1])
      ControlSwitches([7041, 7041, 0])
      ShowTextAttributes(["tennyo_fc1", 0, 0, 2])
      ShowText(["\\n<Paipai>"])
      ShowText(["Singularity's armor, an unknown metal..."])
      ShowText(["Using this will enhance resistance to attributes!"])
      PlayME(["RPG::ME(@name=\"mon_fanfale\", @pitch=100, @volume=100)"])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["By defeating the Singularity,"])
      ShowText(["I can now process Gems that enhance attribute resistance!"])
      Wait([30])
      Empty([])

    BranchEnd([])
    Empty([])

  BranchEnd([])
  ConditionalBranch([1, 1313, 0, 5, 1])
    ConditionalBranch([0, 7042, 1])
      ControlSwitches([7042, 7042, 0])
      ShowTextAttributes(["tennyo_fc1", 0, 0, 2])
      ShowText(["\\n<Paipai>"])
      ShowText(["World Drown's scales, incredible magical power..."])
      ShowText(["Using this will increase the power of attributes!"])
      PlayME(["RPG::ME(@name=\"mon_fanfale\", @pitch=100, @volume=100)"])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["By defeating World Drown,"])
      ShowText(["I can now process Gems that enhance attribute attack power!"])
      Wait([30])
      Empty([])

    BranchEnd([])
    Empty([])

  BranchEnd([])
  ConditionalBranch([1, 1314, 0, 3, 1])
    ConditionalBranch([0, 7045, 1])
      ControlSwitches([7045, 7045, 0])
      ShowTextAttributes(["tennyo_fc1", 0, 0, 2])
      ShowText(["\\n<Paipai>"])
      ShowText(["Angolmois's armor fragments conceal tremendous fighting spirit."])
      ShowText(["Using this will increase skill power!"])
      PlayME(["RPG::ME(@name=\"mon_fanfale\", @pitch=100, @volume=100)"])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["By defeating Angolmois,"])
      ShowText(["I can now process Gems that enhance skill power!"])
      Wait([30])
      Empty([])

    BranchEnd([])
    Empty([])

  BranchEnd([])
  ConditionalBranch([1, 1307, 0, 4, 1])
    ConditionalBranch([0, 7046, 1])
      ControlSwitches([7046, 7046, 0])
      ShowTextAttributes(["tennyo_fc1", 0, 0, 2])
      ShowText(["\\n<Paipai>"])
      ShowText(["The hair of Magatsu-Omikami contains a cursed grudge."])
      ShowText(["Using this will allow you to inflict status ailments on enemies!"])
      PlayME(["RPG::ME(@name=\"mon_fanfale\", @pitch=100, @volume=100)"])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["By defeating Magatsu-Omikami,"])
      ShowText(["you can now process a stone that inflicts status ailments!"])
      Wait([30])
      Empty([])

    BranchEnd([])
    Empty([])

  BranchEnd([])
  ConditionalBranch([1, 1325, 0, 12, 1])
    ConditionalBranch([0, 7048, 1])
      ControlSwitches([7048, 7048, 0])
      ShowTextAttributes(["tennyo_fc1", 0, 0, 2])
      ShowText(["\\n<Paipai>"])
      ShowText(["The horns of the Seven Deadly Sins contain powers that affect the mind."])
      ShowText(["Using this will greatly enhance your race's abilities!"])
      PlayME(["RPG::ME(@name=\"mon_fanfale\", @pitch=100, @volume=100)"])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["By defeating the Seven Deadly Sins,"])
      ShowText(["you can now process a stone that strengthens your race!"])
      Wait([30])
      Empty([])

    BranchEnd([])
    Empty([])

  BranchEnd([])
  ConditionalBranch([1, 1334, 0, 4, 1])
    ConditionalBranch([0, 7049, 1])
      ControlSwitches([7049, 7049, 0])
      ShowTextAttributes(["tennyo_fc1", 0, 0, 2])
      ShowText(["\\n<Paipai>"])
      ShowText(["The hair of the All-Knowing One contains immense magical power."])
      ShowText(["Using this will greatly enhance your job's abilities!"])
      PlayME(["RPG::ME(@name=\"mon_fanfale\", @pitch=100, @volume=100)"])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["By defeating the All-Knowing One,"])
      ShowText(["you can now process a stone that strengthens your job!"])
      Wait([30])
      Empty([])

    BranchEnd([])
    Empty([])

  BranchEnd([])
  ConditionalBranch([1, 1335, 0, 5, 1])
    ConditionalBranch([0, 7050, 1])
      ControlSwitches([7050, 7050, 0])
      ShowTextAttributes(["tennyo_fc1", 0, 0, 2])
      ShowText(["\\n<Paipai>"])
      ShowText(["Echidna's cells have an exceptionally high adaptability."])
      ShowText(["Using this will allow you to adapt to various environments!"])
      PlayME(["RPG::ME(@name=\"mon_fanfale\", @pitch=100, @volume=100)"])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["By defeating Echidna,"])
      ShowText(["you can now process a stone that enhances your abilities based on the environment!"])
      Wait([30])
      Empty([])

    BranchEnd([])
    Empty([])

  BranchEnd([])
  ConditionalBranch([1, 1338, 0, 4, 1])
    ConditionalBranch([0, 7052, 1])
      ControlSwitches([7052, 7052, 0])
      ShowTextAttributes(["tennyo_fc1", 0, 0, 2])
      ShowText(["\\n<Paipai>"])
      ShowText(["The body fragments of the Dimensional Eroder have a high Affinity for chaos."])
      ShowText(["Using this will increase your resistance to chaos attributes!"])
      PlayME(["RPG::ME(@name=\"mon_fanfale\", @pitch=100, @volume=100)"])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["By defeating the Dimensional Eroder,"])
      ShowText(["you can now process a stone that enhances resistance to chaos attributes!"])
      Wait([30])
      Empty([])

    BranchEnd([])
    Empty([])

  BranchEnd([])
  ConditionalBranch([1, 1339, 0, 5, 1])
    ConditionalBranch([0, 7054, 1])
      ControlSwitches([7054, 7054, 0])
      ShowTextAttributes(["tennyo_fc1", 0, 0, 2])
      ShowText(["\\n<Paipai>"])
      ShowText(["The body fragments of the Star Eater are condensed with the energy of the galaxy."])
      ShowText(["Using this will significantly enhance your physical abilities!"])
      PlayME(["RPG::ME(@name=\"mon_fanfale\", @pitch=100, @volume=100)"])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["By defeating the Star Eater,"])
      ShowText(["you can now process a stone that enhances your stats!"])
      Wait([30])
      Empty([])

    BranchEnd([])
    Empty([])

  BranchEnd([])
  ConditionalBranch([1, 1345, 0, 5, 1])
    ConditionalBranch([0, 7055, 1])
      ControlSwitches([7055, 7055, 0])
      ShowTextAttributes(["tennyo_fc1", 0, 0, 2])
      ShowText(["\\n<Paipai>"])
      ShowText(["The horn of the Void Dragon is condensed with tremendous fighting spirit."])
      ShowText(["Using this will greatly increase your Affinity for chaos!"])
      PlayME(["RPG::ME(@name=\"mon_fanfale\", @pitch=100, @volume=100)"])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["By defeating the Void Dragon,"])
      ShowText(["you can now process a stone that enhances your Affinity for chaos attributes!"])
      Wait([30])
      Empty([])

    BranchEnd([])
    Empty([])

  BranchEnd([])
  ConditionalBranch([1, 1372, 0, 2, 0])
    ControlVariables([1372, 1372, 0, 0, 3])
    ShowTextAttributes(["tennyo_fc1", 0, 0, 2])
    ShowText(["\\n<Paipai>"])
    ShowText(["I have merged with a different Pai-Pai that returned from the Chaos Domain."])
    ShowText(["With this, my skill in stone crafting has greatly improved!!"])
    PlayME(["RPG::ME(@name=\"mon_fanfale\", @pitch=100, @volume=100)"])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["By merging with the parallel world Pai Pai,"])
    ShowText(["I can now process the ultra Gems!"])
    Wait([30])
    Empty([])

  BranchEnd([])
  ShowTextAttributes(["tennyo_fc1", 0, 0, 2])
  ShowText(["\\n<Paipai>"])
  ShowText(["Now, let's get to work!"])
  ShowText(["I will serve you luxurious Gems made by Paipai~♪"])
  ShowChoices([["Go shopping", "Request gem processing", "No need"], 3])
  When([0, "買い物をする"])
    ShopProcessing([0, 2127, 0, 0, false])
    ShopItem([0, 3015, 0, 0])
    ShopItem([0, 2132, 0, 0])
    ShopItem([0, 2137, 0, 0])
    ShopItem([0, 2148, 0, 0])
    ShopItem([0, 2122, 0, 0])
    ShopItem([0, 2306, 0, 0])
    ShopItem([0, 3105, 0, 0])
    ShopItem([0, 3078, 0, 0])
    ShopItem([0, 3084, 0, 0])
    ShopItem([0, 4251, 0, 0])
    ShopItem([0, 3107, 0, 0])
    ShopItem([0, 4261, 0, 0])
    ShopItem([0, 3113, 0, 0])
    ShopItem([0, 3126, 0, 0])
    ShopItem([0, 3220, 0, 0])
    ShopItem([0, 3229, 0, 0])
    ShopItem([0, 3116, 0, 0])
    ShopItem([0, 3361, 0, 0])
    ShopItem([0, 3364, 0, 0])
    ShopItem([0, 3350, 0, 0])
    ShopItem([0, 3207, 0, 0])
    ShopItem([0, 3345, 0, 0])
    ShopItem([0, 3375, 0, 0])
    ShopItem([0, 3111, 0, 0])
    ShopItem([0, 3603, 0, 0])
    ShopItem([0, 3608, 0, 0])
    ShopItem([0, 3595, 0, 0])
    ShopItem([0, 3591, 0, 0])
    ShopItem([0, 2480, 0, 0])
    Empty([])

  When([1, "秘石の加工を頼む"])
    Label(["リスト"])
    Script(["ex_choice_add(\"Gem of the Angelic Dominion\",1)"])
    ScriptMore(["ex_choice_add(\"Gem of the Monster Realm\",2)"])
    ScriptMore(["ex_choice_add(\"Gem of the United World\",3)"])
    ScriptMore(["ex_choice_add(\"Gem for Strengthening Ability Values\",4,\"s[7054]\",0)"])
    ScriptMore(["ex_choice_add(\"Skill enhancement Gem\",5,\"s[7045]\",0)"])
    ScriptMore(["ex_choice_add(\"Attribute enhancement Gem\",6,\"s[7042]\",0)"])
    ScriptMore(["ex_choice_add(\"Chaos attribute enhancement Gem\",7,\"s[7055]\",0)"])
    Script(["ex_choice_add(\"Secret stone of attribute resistance\",8,\"s[7041]\",0)"])
    ScriptMore(["ex_choice_add(\"Chaos attribute resistance Gem\",9,\"s[7052]\",0)"])
    ScriptMore(["ex_choice_add(\"occupation enhancement Gem\",10,\"s[7049]\",0)"])
    ScriptMore(["ex_choice_add(\"Racial Strengthening Gem\",11,\"s[7048]\",0)"])
    ScriptMore(["ex_choice_add(\"Status Abnormal Addition Gem\",12,\"s[7046]\",0)"])
    ScriptMore(["ex_choice_add(\"Environment Enhancement Gem\",13,\"s[7050]\",0)"])
    ScriptMore(["ex_choice_add(\"Top Gem\",14,\"v[1372] >= 3\",0)"])
    ScriptMore(["ex_choice_add(\"Stop\",15)"])
    Script(["ex_choice_show(0,11,[0,0])"])
    ConditionalBranch([1, 9, 0, 1, 0])
      Script(["call_synthesize(86)"])
      JumpToLabel(["リスト"])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 9, 0, 2, 0])
      Script(["call_synthesize(87)"])
      JumpToLabel(["リスト"])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 9, 0, 3, 0])
      Script(["call_synthesize(124)"])
      JumpToLabel(["リスト"])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 9, 0, 4, 0])
      Script(["call_synthesize(137)"])
      JumpToLabel(["リスト"])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 9, 0, 5, 0])
      Script(["call_synthesize(131)"])
      JumpToLabel(["リスト"])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 9, 0, 6, 0])
      Script(["call_synthesize(130)"])
      JumpToLabel(["リスト"])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 9, 0, 7, 0])
      Script(["call_synthesize(138)"])
      JumpToLabel(["リスト"])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 9, 0, 8, 0])
      Script(["call_synthesize(129)"])
      JumpToLabel(["リスト"])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 9, 0, 9, 0])
      Script(["call_synthesize(136)"])
      JumpToLabel(["リスト"])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 9, 0, 10, 0])
      Script(["call_synthesize(134)"])
      JumpToLabel(["リスト"])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 9, 0, 11, 0])
      Script(["call_synthesize(133)"])
      JumpToLabel(["リスト"])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 9, 0, 12, 0])
      Script(["call_synthesize(132)"])
      JumpToLabel(["リスト"])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 9, 0, 13, 0])
      Script(["call_synthesize(135)"])
      JumpToLabel(["リスト"])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 9, 0, 14, 0])
      Script(["call_synthesize(139)"])
      JumpToLabel(["リスト"])
      Empty([])

    BranchEnd([])
    ConditionalBranch([1, 9, 0, 15, 0])
      ExitEventProcessing([])
      Empty([])

    BranchEnd([])
    ExitEventProcessing([])
    Empty([])

  When([2, "用はない"])
    Empty([])

  ChoicesEnd([])
  Empty([])
